% if c.comment:
    ${h.form( h.url_for('page_comment', page_id=c.page.urlTitle(), id=c.comment.id), method="PUT")}
% else:
    ${h.form( h.url_for('page_comments', page_id=c.page.urlTitle()), method="POST")}
% endif

    % if c.in_reply_to:
        <input type="hidden" name="reply_to" value="${c.in_reply_to.id}"/>
    % endif
    <label for="body">Comment</label>
    <textarea name="body">${c.comment.body if c.comment else ''}</textarea>
    <br/>
    <input type="submit" value="${'Update Comment' if c.comment else 'Add Comment'}"/>
</form>

